package com.example.consumer.controller;

import com.example.consumer.service.openfeign.IEchoService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * openfeign测试服务接口
 * @author chengjian 
 * @date 2021/6/4
 */
@RestController
@RequestMapping(value = "open-feign")
public class OpenFeignController {

    @Resource
    private IEchoService iEchoService;

    @GetMapping("/echo/app-name")
    public String echoAppName(String name){
        return iEchoService.echo(name);
    }
}
